<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<html class="no-js" lang="">
<head>
    <jsp:include page="../layout/head.jsp">
        <jsp:param name="title" value="修改个人信息"/>
        <jsp:param name="cssName" value="change-info"/>
    </jsp:include>
</head>
<body>
<jsp:include page="../layout/nav.jsp"/>

<div class="container">


    <jsp:include page="userleft.jsp"/>

    <div class="main">

        <div class="page-wrapper">

            <h1 class="title">修改个人信息</h1>
            <form action="${pageContext.request.contextPath}/user/upd" method="post" class="form-control">

                <div class="form-group">
                    <label for="username">名称</label>
                    <input type="text" id="username" name="name" value="${user.name}">
                </div>
                <div class="form-group">
                    <label for="email">邮箱</label>
                    <input type="email" id="email" name="email" value="${user.email}">
                </div>
                <div class="form-group">
                    <label for="phone">手机</label>
                    <input type="tel" id="phone" name="phone" value="${user.phone}">
                </div>
                <div class="form-group">
                    <label for="address">地址</label>
                    <input type="text" id="address" name="address" value="${user.address}">
                </div>
                <div class="form-group">
                    <label for="birthday">生日</label>
                    <input type="date" id="birthday" name="birthday" value="${user.birthday}">
                </div>
                <div class="form-group">
                    <div class="radio">
                        <label>
                            <input type="radio" value="0" name="sex" ${user.sex ==0 ? "checked":""}> 男
                        </label>
                        <label>
                            <input type="radio" value="1" name="sex" ${user.sex ==1 ? "checked":""}> 女
                        </label>
                    </div>
                </div>

                <div class="btn-group">
                    <!--<button type="reset" class="btn btn-default">重置</button>-->
                    <button type="submit" class="btn btn-default">提交</button>
                </div>


            </form>

        </div>


    </div>

</div>
<jsp:include page="../layout/footer.jsp"/>
</body>
</html>
